﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WinUI
{
    public class MessageService
    {
        public void ShowErrorMessage(string message)
        {
            MessageBox.Show(message, "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }

        public void ShowErrorMessage(string message, params object[] args)
        {
            if (args != null)
            {
                message = string.Format(message, args);
            }
            ShowErrorMessage(message);
        }

        public void ShowInformationMessage(string message)
        {
            MessageBox.Show(message, "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        public void ShowInformationMessage(string message, params object[] args)
        {
            if (args != null)
            {
                message = string.Format(message, args);
            }
            ShowInformationMessage(message);
        }
    }
}